package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 自定义专家 sys_expert_custom_group_expert
 *
 * @author ruoyi
 * @date 2024-10-22
 */
public class SysExpertCustomGroupExpert extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name = "序号", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.NUMERIC, prompt = "序号")
    private Long id;

    private Long customGroupId;

    private String expertId;

    private List<String> customGroupIds;

    /**
     * 专家对象
     */
    /** 部门对象 */
    @Excels({
            @Excel(name = "专家姓名", targetAttr = "expertName", type = Excel.Type.EXPORT),
            @Excel(name = "证件号码", targetAttr = "identityCode", type = Excel.Type.EXPORT),
            @Excel(name = "手机号码", targetAttr = "mobile", type = Excel.Type.EXPORT),
            @Excel(name = "专家品目", targetAttr = "expertCategoryName", type = Excel.Type.EXPORT),
            @Excel(name = "地区", targetAttr = "areaName", type = Excel.Type.EXPORT)
    })
    public SysExpert expert;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCustomGroupId(Long customGroupId) {
        this.customGroupId = customGroupId;
    }

    public Long getCustomGroupId() {
        return customGroupId;
    }

    public void setExpertId(String expertId) {
        this.expertId = expertId;
    }

    public String getExpertId() {
        return expertId;
    }

    public void setExpert(SysExpert expert){ this.expert = expert;}

    public SysExpert getExpert(){ return expert;}

    public void setCustomGroupIds(List<String> customGroupIds){ this.customGroupIds = customGroupIds; }
    public List<String> getCustomGroupIds(){ return customGroupIds; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("customGroupId", getCustomGroupId())
                .append("expertId", getExpertId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("expert", getExpert())
                .toString();
    }
}
